(* Version.pas  (c) JR Stockton  www.merlyn.demon.co.uk  >= 2002-09-29 *)

{ Should allow for known versions of TP, BP, TPW, BPW, Delphi, TMT
  May allow for FPC, which I do not have
  But only safe with my own programs
  Not needed for those using only Delphi 6 and up
  }

{$IFNDEF __TMT__}{$UNDEF DELPHI}{$UNDEF PASCAL}{$UNDEF BORPAS}{$ENDIF}


{ No conditionals before TP4 }
{$IFDEF VER10 }{$DEFINE PASCAL} TPW 1.0/1.5 - Not Tested by JRS {$ENDIF}

{$IFDEF VER40 }{$DEFINE PASCAL} Not Tested by JRS {$ENDIF}
{$IFDEF VER50 }{$DEFINE PASCAL} {$DEFINE VERGE50} {$ENDIF}
{$IFDEF VER55 }{$DEFINE PASCAL} {$DEFINE VERGE55} {$ENDIF}
{$IFDEF VER60 }{$DEFINE PASCAL} {$DEFINE VERGE60} {$ENDIF}
{$IFDEF VER70 }{$DEFINE PASCAL} {$DEFINE VERGE70} {$ENDIF}

{$IFDEF VER80 }{$DEFINE DELPHI}{$DEFINE VERGE80}{$ENDIF D1    }
{$IFDEF VER90 }{$DEFINE DELPHI}{$DEFINE VERGE90}{$ENDIF D2    }
{$IFDEF VER93 }{$DEFINE DELPHI}{$DEFINE VERGE93}{$ENDIF BCB++1}
{$IFDEF VER100}{$DEFINE DELPHI}{$DEFINE VERGE100}{$ENDIF D3    }
{$IFDEF VER110}{$DEFINE DELPHI}{$DEFINE VERGE110}{$ENDIF BCB++3}
{$IFDEF VER120}{$DEFINE DELPHI}{$DEFINE VERGE120}{$ENDIF D4    }
{$IFDEF VER125}{$DEFINE DELPHI}{$DEFINE VERGE125}{$ENDIF BCB++4}
{$IFDEF VER130}{$DEFINE DELPHI}{$DEFINE VERGE130}{$ENDIF D5    }
{$IFDEF VER140}{$DEFINE DELPHI}{$DEFINE VERGE140}{$ENDIF D6    }
{$IFDEF VER150}{$DEFINE DELPHI}{$DEFINE VERGE150}{$ENDIF D7    }
{$IFDEF VER160}{$DEFINE DELPHI}{$DEFINE VERGE160}{$ENDIF D8    }
{$IFDEF VER170}{$DEFINE DELPHI}{$DEFINE VERGE170}{$ENDIF D2005 }
{$IFDEF VER180}{$DEFINE DELPHI}{$DEFINE VERGE180}{$ENDIF D2006}
{$IFDEF VER185}{$DEFINE DELPHI}{$DEFINE VERGE185}{$ENDIF D2007}
{$IFDEF VER200}{$DEFINE DELPHI}{$DEFINE VERGE200}{$ENDIF D2009}
{$IFDEF VER210}{$DEFINE DELPHI}{$DEFINE VERGE210}{$ENDIF D2010}

{$IFDEF VERGE210} {$DEFINE VERGE200} {$ENDIF}
{$IFDEF VERGE200} {$DEFINE VERGE185} {$ENDIF}
{$IFDEF VERGE185} {$DEFINE VERGE180} {$ENDIF}
{$IFDEF VERGE180} {$DEFINE VERGE170} {$ENDIF}
{$IFDEF VERGE170} {$DEFINE VERGE160} {$ENDIF}
{$IFDEF VERGE160} {$DEFINE VERGE150} {$ENDIF}
{$IFDEF VERGE150} {$DEFINE VERGE140} {$ENDIF}
{$IFDEF VERGE140} {$DEFINE VERGE130} {$ENDIF}
{$IFDEF VERGE130} {$DEFINE VERGE125} {$ENDIF}
{$IFDEF VERGE125} {$DEFINE VERGE120} {$ENDIF}
{$IFDEF VERGE120} {$DEFINE VERGE110} {$ENDIF}
{$IFDEF VERGE110} {$DEFINE VERGE100} {$ENDIF}
{$IFDEF VERGE100} {$DEFINE VERGE93 } {$ENDIF}
{$IFDEF VERGE93 } {$DEFINE VERGE90 } {$ENDIF}
{$IFDEF VERGE90 } {$DEFINE VERGE80 } {$ENDIF}
{$IFDEF VERGE80 } {$DEFINE VERGE70 } {$ENDIF}
{$IFDEF VERGE70 } {$DEFINE VERGE60 } {$ENDIF}
{$IFDEF VERGE60 } {$DEFINE VERGE55 } {$ENDIF}
{$IFDEF VERGE55 } {$DEFINE VERGE50 } {$ENDIF}
{$IFDEF VERGE50 } {$DEFINE VERGE40 } {$ENDIF}
{$IFDEF VERGE40 } {$DEFINE VERGE30 } {$ENDIF}
{$IFDEF VERGE30 } {$DEFINE VERGE20 } {$ENDIF}
{$IFDEF VERGE20 } {$DEFINE VERGE10 } {$ENDIF}

{$IFDEF PASCAL}{$DEFINE BORPAS}{$ENDIF}

{$IFDEF __TMT__}{$DEFINE PASCAL}{$ENDIF}

{$IFDEF   FPC  }{$DEFINE PASCAL}{$ENDIF}

{$IFNDEF PASCAL} {$IFNDEF DELPHI} Not Tested by JRS {$ENDIF} {$ENDIF}

{* Version.pas *}
